<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use app\assets\AppAsset;
use yii\helpers\Url;
AppAsset::addCss($this, Yii::$app->request->baseUrl . "/css/main.css");
AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/main.js');

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <?= Html::csrfMetaTags() ?>
    <title>国创后台</title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>

<div style="float: left; width: 25%;height: 100%;background-color: #283041">
    <div style="width: 100%;height: 1400px">
        <div class="gc-icon">
            <img src="../../img/gc-icon.jpeg" style="width: 60%;height: auto">
        </div>
        <div class="border"></div>
        <ul>
            <div style="width: 100%;height: 20px"></div>
            <li class="heading"><a href="<?php echo Url::toRoute('index.php/home/index'); ?>"><label class="menu-item">首页</label></a></li>
            <li id="nav">
                <div id="accordion">

                    <div class=" heading" data-toggle="collapse"
                         data-parent="#accordion2" href="#collapseOne">
                        <label class="accordion-toggle menu-item">活动管理</label>
                    </div>
                    <div id="collapseOne" class="<?php if($this->params['menuItem'] > 1 && $this->params['menuItem']
                        < 10 ){echo 'panel-collapse in';}else{echo 'panel-collapse collapse';} ?>"
                         style="height: <?php if ($this->params['menuItem'] > 0 && $this->params['menuItem'] < 5) {
                             echo 'auto';
                         } else {
                             echo '0px';
                         } ?>;">
                        <div>
                            <ul class="my-nav">
                                <li class="my-li"><a href="<?php echo Url::toRoute('index.php/activity/index?status=0'); ?>">活动管理</a>
                                </li>

                                <li class="my-li"><a href="<?php echo Url::toRoute('index.php/review-project/index'); ?>">项目回顾</a>
                                </li>
                            </ul>
                        </div>
                    </div>

                </div>
            </li>
            <li class="heading"><a href="<?php echo Url::toRoute('index.php/news/index')?>"><label class="menu-item">学院新闻</label></a></li>
            <li class="heading"><a><label class="menu-item">创业案例</label></a></li>
        </ul>
    </div>
</div>

<div style="float:left;width: 75%;">


    <?= $content ?>


</div>


<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
